DataCollection | ComponentOne
C1.DataCollection.AdoNet Assembly / C1.DataCollection.AdoNet Namespace / C1AdoNetVirtualDataCollection<T> Class / C1AdoNetVirtualDataCollection<T> Constructor
The connection to the Ado.Net source.
The name of the table.
The fields that will be queried.
The maximum parallel requests.
The maximum active requests.
The request delay.

In This Topic
    C1AdoNetVirtualDataCollection<T> Constructor
    In This Topic
    Initializes a new instance of the C1AdoNetVirtualDataCollection<T> class.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal connection As DbConnection, _
       ByVal tableName As String, _
       Optional ByVal fields As IEnumerable(Of String), _
       Optional ByVal maxParallelRequests As Integer, _
       Optional ByVal maxActiveRequests As Integer, _
       Optional ByVal requestDelay As Nullable(Of TimeSpan) _
    )
    public C1AdoNetVirtualDataCollection<T>( 
       DbConnection connection,
       string tableName,
       IEnumerable<string> fields,
       int maxParallelRequests,
       int maxActiveRequests,
       Nullable<TimeSpan> requestDelay
    )

    Parameters

    connection
    The connection to the Ado.Net source.
    tableName
    The name of the table.
    fields
    The fields that will be queried.
    maxParallelRequests
    The maximum parallel requests.
    maxActiveRequests
    The maximum active requests.
    requestDelay
    The request delay.
    See Also